

/******************PositionColor************************/


const char * Shaders::ShaderCode_PositionColor = R"(

cbuffer ConstantBuffer : register(b0)
{
    row_major matrix World; 
    row_major matrix View;  
    row_major matrix Proj;  
}


struct VertexIn
{
    float3 posL : POSITION;
    float4 color : COLOR;
};

struct VertexOut
{
    float4 posH : SV_POSITION;
    float4 color : COLOR;
};

VertexOut vs_main(VertexIn pIn)
{
    VertexOut pOut;
    //pOut.posH = mul(float4(pIn.posL, 1.0f), World); 
   // pOut.posH = mul(pOut.posH, View);                   
    pOut.posH = mul(float4(pIn.posL, 1.0f), Proj);                   
    pOut.color = pIn.color;       
    return pOut;
}

float4 ps_main(VertexOut pIn) : SV_Target
{
    return pIn.color;   
}

)";


